package com.zmn.oms.services.interfaces.ins;

import com.zmn.oms.model.entity.ins.InsOrderMasterSync;

import java.util.List;

/**
 * 类描述：保险单
 *
 * @author liuying
 * @date 2019/01/23 10:48
 */
public interface InsOrderMasterSyncService {

    /**
     * 查询未同步的数据
     * @return
     */
    List<InsOrderMasterSync> listNoSynced(Integer rows);

    /**
     * 修改同步状态
     * @param insMasterSyncIdList
     */
    void updateSyncPendingByKeys(List<Long> insMasterSyncIdList);

    /**
     * 修改同步状态
     * @param insMasterSyncIdList
     */
    void updateUnSyncedByKeys(List<Long> insMasterSyncIdList);

    /**
     * 修改同步状态
     * @param insMasterSyncIdList
     */
    void updateSyncedSuccessByKeys(List<Long> insMasterSyncIdList);

    /**
     * 修改同步状态
     * @param insMasterSyncIdList
     */
    void updateSyncedFailByKeys(List<Long> insMasterSyncIdList);

    /**
     * 添加
     * @param insOrderMasterSync
     * @return
     */
    int insertInsOrderMasterSync(InsOrderMasterSync insOrderMasterSync);
}
